<template>
  <div class="container">
    <img src="~@/assets/report/first/cover.jpg" />
    <div class="contain">
      <p style="font-size: 80px;line-height: 120px;font-weight: 400;color: #000000;text-align:center;">
        {{ report.reportName.slice(0, -4) }}
      </p>
      <br />
      <p
        style="font-size: 80px;line-height: 120px;font-weight: 400;color: #000000;text-align:center;margin-bottom:60px"
      >
        {{ report.reportName.slice(-4) }}
      </p>
      <div>
        <p>报告编号：{{ report.reportId }}</p>
        <p>姓名：{{ report.patientsName }}</p>
        <p>性别：{{ report.patientsSex }}</p>
        <p>年龄：{{ report.patientAge }}</p>
        <p>报告时间：{{ report.reportCreateTime }}</p>
      </div>
      <p class="told">此报告非医疗诊断书，任何医疗行为请遵医嘱</p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BasicInfo',
  props: ['report'],
  data() {
    return {}
  },
  methods: {}
}
</script>

<style lang="less" scoped>
@media print {
  .container {
    page-break-inside: avoid;
  }
}
.container {
  p {
    margin: 0;
  }
  position: relative;
  img {
    width: 100%;
  }
  .contain {
    width: 631px;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 130px;
    top: 0;
    left: 50%;
    margin-left: -315.5px;
    div {
      font-size: 36px;
      font-weight: 400;
      line-height: 50px;
      color: rgba(0, 0, 0, 0.9);
      p {
        margin-bottom: 18px;
      }
      p:last-child {
        margin-bottom: 0;
      }
    }
    .told {
      font-size: 24px;
      font-weight: 400;
      color: rgba(0, 0, 0, 0.8);
      margin-top: 100px;
    }
  }
}
@media print {
  .container {
    page-break-after: always;
    page-break-inside: avoid;
    // -moz-page-break-after: always;
    -moz-page-break-inside: avoid;
  }
}
</style>

